testexe:ab.cc
	g++ ab.cc -o testexe

.PHONY:clean
clean:
	rm -f testexe



#myexe:a.cc
#	g++ $^ -o $@
#
#.PHONY:clean
#clean:
#	rm -f myexe

#cc=g++
#src=a.cc
#target =myexe
#
#$(target):$(src)
#	$(cc) $^ -o $@
#
#.PHONY:clean
#clean:
#	rm -f $(target)






#myexe: a.cc
#	@g++ a.cc -o myex
#	@echo "编译完成"
#
#.PHONY:clean
#clean:
#	@rm -f myexe
#	@echo "清理完成"
